package com.crm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.crm.dao.SysAddressMapper;
import com.crm.model.SysAddress;
import com.crm.model.SysAddressExample;
import com.crm.model.entity.Tree;
import com.crm.service.SysAddressService;
@Service
public class SysAdressServiceImpl extends BaseServiceImpl<SysAddress> implements SysAddressService {

	@Autowired
	private SysAddressMapper  sysAddressMapper;
	
	@Override
	public List<Tree> selectMaster() {
		// TODO Auto-generated method stub
		return sysAddressMapper.selectMaster();
	}

	/**
	 * 
	 * @Description : 条件检索
	 * @author zealot
	 * @param @param example
	 * @param @return
	 * @return List<SysAddress>
	 * @version 创建时间 : 2016年11月4日 下午1:53:05
	 * @thorws
	 */
	public List<SysAddress> selectByExample(SysAddressExample example){
		return sysAddressMapper.selectByExample(example);
	}

}
